package com.kb.erp.entity.crm;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 发票;
 * @author : 陈志翔
 * @date : 2024-10-15
 */
@Data
@TableName("CRM_Invoice")
@Accessors(chain = true)
public class Invoice implements Serializable, Cloneable {
    /**  */
    @TableId(value ="recId", type = IdType.AUTO)
    private Integer recId;

    @TableField(exist = false)
    private Integer id;

    /** 应收总金额 */
    @TableField("AR_Amount")
    private BigDecimal arAmount;

    /**  */
    @TableField("addcharge")
    private BigDecimal addCharge;

    /**  */
    @TableField("addway")
    private String addWay;

    /**  */
    @TableField("amountpaid")
    private BigDecimal amountPaid;

    /**  */
    @TableField("creditamount")
    private BigDecimal creditAmount;

    /**  */
    @TableField("currcode")
    private String currCode;

    /**  */
    @TableField("currencyid")
    private Integer currencyId;

    /**  */
    @TableField("custcode")
    private String custCode;

    /**  */
    @TableField("d10rkey")
    private Integer d10RKey;

    /**  */
    @TableField("dicountamount")
    private BigDecimal discountAmount;

    /**  */
    @TableField("duedate")
    private Date dueDate;

    /**  */
    @TableField("invoiceby")
    private String invoiceBy;

    /**  */
    @TableField("invoicedate")
    private Date invoiceDate;

    /**  */
    @TableField("invoicenumber")
    private String invoiceNumber;

    /**  */
    @TableField("invoicetype")
    private String invoiceType;

    /**  */
    @TableField("netamount")
    private BigDecimal netAmount;

    /**  */
    @TableField("note")
    private String note;

    /**  */
    @TableField("paymenttermid")
    private Integer paymentTermId;

    /**  */
    @TableField("status")
    private String status;

    /**  */
    @TableField("subamount")
    private BigDecimal subAmount;

    /**  */
    @TableField("submitdate")
    private Date submitDate;

    /**  */
    @TableField("submitedby")
    private String submittedBy;

    /** 对账总金额 */
    @TableField("taxamount")
    private BigDecimal taxAmount;

    /**  */
    @TableField("taxInvoiceNo")
    private String taxInvoiceNo;

    /**  */
    @TableField("totalamount")
    private BigDecimal totalAmount;

    /**  */
    @TableField("type")
    private String type;

    /**  */
    @TableField("customerid")
    private String customerId;

    /**  */
    @TableField("freightcost")
    private BigDecimal freightCost;

    /**  */
    @TableField("fileid")
    private String fileId;

    /** 税率 */
    @TableField(exist = false)
    private String taxId;
    private String billingNotes;
}
